package com.gmail.liulijuan;

import java.util.Scanner;

public class From35to7 {

	/**
	 * @param args
	 */
	
		public static void main(String[] args) {
			int[] line=new int[7];
			
			for (int i = 0; i < line.length; i++) {
				double a=Math.random();
				double b=a*34+1;
				int c=(int)b;
				for (int j = 0; j < line.length; j++) {
					if (c!=line[j]) {
						line[i]=c;
					} else {
						continue;
					}
				}
			}
			System.out.println("The Random Data is:");
			for (int i = 0; i < line.length; i++) {
				System.out.printf("%14d", line[i]); 
			}
			System.out.println();
			System.out.println("The Scanner Data is:");
			int[] line2=new int[7];
			for (int i = 0; i < line2.length; i++) {
				Scanner sc=new Scanner(System.in);
				line2[i]=sc.nextInt();
				
			}
			for (int i = 0; i < line2.length; i++) {
				System.out.printf("%14d", line2[i]); 
			}
			int m=0;
			for (int i = 0; i < line.length; i++) {
				for (int j = 0; j < line2.length; j++) {
					if (line[i]==line2[j]) {
						m=m+1;
					}
				}
			}
			 if (m>=7) {
				System.out.println("You Win!");
			} else {
	            System.out.println("You lose!");
			}
				

		}

	

	}


